package com.johnny.xia.base;

public class Haha{

    public static void main(String[] args){
        for (int day = 1; day < 10; day++){
            int score = 1000000;
            float rate = 0.9F;
            Double resultDou = 0D;
            Double resultDou2 = score * Math.pow(rate, day);
            if (day % 2 == 0){
                resultDou = resultDou2 * 2;
            }else{
                resultDou = resultDou2;
            }

            System.err.println(Math.pow(rate, day) + "\r\nSource:" + resultDou2+ "\r\nresult:" + resultDou );

            System.err.println("========================================");
        }
    }
}
